<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">

	<ui:define name="body">
		<h:form id="liseForm">
			<a:region>
				<rich:panel styleClass="richPanelYukseklik">
					<f:facet name="header">Özgeçmiş Bilgileri</f:facet>
					<h:outputText value="İŞ TECRÜBELERİM" styleClass="txtBaslik" />
					<br />

					<s:decorate id="seyahatDurumField" template="layout/display.xhtml">
						<ui:define name="label">Çalışma Durumu </ui:define>
						<h:selectOneRadio
							value="#{kullaniciHome.instance.bilgisayarExcel}">
							<f:selectItem id="item1" itemLabel="Halen Çalışıyorum"
								itemValue="C" />
							<f:selectItem id="item2" itemLabel="Ayrıldım" itemValue="A" />
							<f:selectItem id="item2" itemLabel="Yeni Mezun Oldum"
								itemValue="M" />
						</h:selectOneRadio>
					</s:decorate>
					<br />
					<br />
					<br />
 			<div style="clear: both"><rich:dataTable rowKeyVar="rows"
						id="kullaniciIsTecrubeleriList" var="_kullaniciIsTecrubeleri"
						rows="5" value="#{kullaniciHome.instance.kullaniciTecrubeleris}"
						rendered="#{not empty kullaniciHome.instance.kullaniciTecrubeleris}">
						<rich:column>
							<a:commandLink ajaxSingle="true" id="editlink"
								oncomplete="#{rich:component('editPanel')}.show()">
								<h:graphicImage value="/img/edit.gif" style="border:0" />
								<f:setPropertyActionListener value="#{_kullaniciIsTecrubeleri}"
									target="#{kullaniciHome.currentKullaniciIstecrubeleri}" />
							</a:commandLink>

							<rich:toolTip for="editlink" value="Edit" />

							<a:commandLink ajaxSingle="true" id="deletelink"
								oncomplete="#{rich:component('deletePanel')}.show()">
								<h:graphicImage value="/img/delete.gif" style="border:0" />
								<f:setPropertyActionListener value="#{_kullaniciIsTecrubeleri}"
									target="#{kullaniciHome.currentKullaniciIstecrubeleri}" />
							</a:commandLink>
							<rich:toolTip for="deletelink" value="Sil" />
						</rich:column>

						<rich:column>
							<f:facet name="header">
								<h:outputText value="Firma Adı" />
							</f:facet>
							<h:outputText value="#{_kullaniciIsTecrubeleri.firmaAdi}"
								id="firmaID">
								<s:convertDateTime type="both" dateStyle="short" />
							</h:outputText>
						</rich:column>
						<rich:column>
							<f:facet name="header">
								<h:outputText value="Görevi" />
							</f:facet>
							<h:outputText
								value="#{_kullaniciIsTecrubeleri.pozisyonBilgileri.pozisyonAdi}"
								id="gorevID">
								<s:convertDateTime type="both" dateStyle="short" />
							</h:outputText>
						</rich:column>
						<rich:column>
							<f:facet name="header">
								<h:outputText value="Başlama Tarihi" />
							</f:facet>
							<h:outputText value="#{_kullaniciIsTecrubeleri.iseBaslamaTarihi}"
								id="baslamaID">
								<s:convertDateTime type="both" dateStyle="short" />
							</h:outputText>
						</rich:column>

						<rich:column>
							<f:facet name="header">
								<h:outputText value="Ayrılma Tarihi" />
							</f:facet>
							<h:outputText
								value="#{_kullaniciIsTecrubeleri.istenAyrilmaTarihi}"
								id="bitisID">
								<s:convertDateTime type="both" dateStyle="short" />
							</h:outputText>
						</rich:column>
						<rich:column>
							<f:facet name="header">
								<h:outputText value="Ayrılma Nedeni" />
							</f:facet>
							<h:outputText
								value="#{_kullaniciIsTecrubeleri.ayrılmaNedeni.adi}"
								id="ayrilmaID">
								<s:convertDateTime type="both" dateStyle="short" />
							</h:outputText>
						</rich:column>
						<f:facet name="footer">
							<rich:datascroller align="left" for="kullaniciIsTecrubeleriList">
							</rich:datascroller>
						</f:facet>
					</rich:dataTable> <a:commandLink ajaxSingle="true" id="newlink"
						value="Yeni iş tecrübesi girmek için lütfen tıklayınız"
						oncomplete="#{rich:component('editPanel')}.show()"
						reRender="kullaniciIsTecrubeleriList">
					</a:commandLink></div>
					<br />

					<h:outputText value="REFERANSLAR" styleClass="txtBaslik" />
					<h:panelGrid columns="4" columnClasses="width: 150px;">
						<h:outputText value="Firma Adı" styleClass="yaziBold" />
						<h:outputText value="Adı Soyadı" styleClass="yaziBold" />
						<h:outputText value="Görevi" styleClass="yaziBold" />
						<h:outputText value="Tel No" styleClass="yaziBold" />
						<h:inputText maxlength="100" id="refAd1"
							value="#{kullaniciHome.instance.referansFirmaAdi1}">
							<a:support event="onblur" reRender="refAd1" bypassUpdates="true"
								ajaxSingle="true" />
						</h:inputText>
						<h:inputText maxlength="100" id="refAdS1"
                            value="#{kullaniciHome.instance.referansAdSoyad1}">
                            <a:support event="onblur" reRender="refAdS1" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refGorev1"
                            value="#{kullaniciHome.instance.referansGorevi1}">
                            <a:support event="onblur" reRender="refGorev1" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:panelGroup>
                        <h:inputText maxlength="4" id="refUlke1" 
                            value="#{kullaniciHome.instance.referanstelUlkeKodu1}" style="width:30;">
                            <a:support event="onblur" reRender="refUlke1" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="10" id="refTel1" style="width:60;"
                            value="#{kullaniciHome.instance.referansTelNumarasi1}">
                            <a:support event="onblur" reRender="refTel1" bypassUpdate s="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        </h:panelGroup>
                        
                        <h:inputText maxlength="100" id="refAd2"
                            value="#{kullaniciHome.instance.referansFirmaAdi2}">
                            <a:support event="onblur" reRender="refAd2" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refAdS2"
                            value="#{kullaniciHome.instance.referansAdSoyad2}">
                            <a:support event="onblur" reRender="refAdS2" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refGorev2"
                            value="#{kullaniciHome.instance.referansGorevi2}">
                            <a:support event="onblur" reRender="refGorev2" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:panelGroup>
                        <h:inputText maxlength="4" id="refUlke2" 
                            value="#{kullaniciHome.instance.referanstelUlkeKodu2}" style="width:30;">
                            <a:support event="onblur" reRender="refUlke2" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="10" id="refTel2" style="width:60;"
                            value="#{kullaniciHome.instance.referansTelNumarasi2}">
                            <a:support event="onblur" reRender="refTel1" bypassUpdate s="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        </h:panelGroup>
                        
                        <h:inputText maxlength="100" id="refAd3"
                            value="#{kullaniciHome.instance.referansFirmaAdi3}">
                            <a:support event="onblur" reRender="refAd3" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refAdS3"
                            value="#{kullaniciHome.instance.referansAdSoyad3}">
                            <a:support event="onblur" reRender="refAdS3" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refGorev3"
                            value="#{kullaniciHome.instance.referansGorevi3}">
                            <a:support event="onblur" reRender="refGorev3" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:panelGroup>
                        <h:inputText maxlength="4" id="refUlke3" 
                            value="#{kullaniciHome.instance.referanstelUlkeKodu3}" style="width:30;">
                            <a:support event="onblur" reRender="refUlke3" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="10" id="refTel3" style="width:60;"
                            value="#{kullaniciHome.instance.referansTelNumarasi3}">
                            <a:support event="onblur" reRender="refTel3" bypassUpdate s="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        </h:panelGroup>
                        
                        
                        <h:inputText maxlength="100" id="refAd4"
                            value="#{kullaniciHome.instance.referansFirmaAdi4}">
                            <a:support event="onblur" reRender="refAd4" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refAdS4"
                            value="#{kullaniciHome.instance.referansAdSoyad4}">
                            <a:support event="onblur" reRender="refAdS4" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refGorev4"
                            value="#{kullaniciHome.instance.referansGorevi4}">
                            <a:support event="onblur" reRender="refGorev4" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:panelGroup>
                        <h:inputText maxlength="4" id="refUlke4" 
                            value="#{kullaniciHome.instance.referanstelUlkeKodu4}" style="width:30;">
                            <a:support event="onblur" reRender="refUlke4" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="10" id="refTel4" style="width:60;"
                            value="#{kullaniciHome.instance.referansTelNumarasi4}">
                            <a:support event="onblur" reRender="refTel4" bypassUpdate s="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        </h:panelGroup>
                        
                        <h:inputText maxlength="100" id="refAd5"
                            value="#{kullaniciHome.instance.referansFirmaAdi5}">
                            <a:support event="onblur" reRender="refAd5" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refAdS5"
                            value="#{kullaniciHome.instance.referansAdSoyad5}">
                            <a:support event="onblur" reRender="refAdS5" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="100" id="refGorev5"
                            value="#{kullaniciHome.instance.referansGorevi5}">
                            <a:support event="onblur" reRender="refGorev5" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:panelGroup>
                        <h:inputText maxlength="4" id="refUlke5" 
                            value="#{kullaniciHome.instance.referanstelUlkeKodu5}" style="width:30;">
                            <a:support event="onblur" reRender="refUlke5" bypassUpdates="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        <h:inputText maxlength="10" id="refTel5" style="width:60;"
                            value="#{kullaniciHome.instance.referansTelNumarasi5}">
                            <a:support event="onblur" reRender="refTel5" bypassUpdate s="true"
                                ajaxSingle="true" />
                        </h:inputText>
                        </h:panelGroup>
                        
                        
					</h:panelGrid>
					<br />

					<div style="clear: both"><span class="required">*</span>
					Zorunlu Alanlar</div>
				</rich:panel>
				<div class="actionButtons"><h:commandButton id="save"
					value="#{messages.btnKaydetVeDevam}"
					action="#{kullaniciHome.doIK09}" /></div>
			</a:region>
		</h:form>
	<rich:modalPanel id="editPanel" autosized="true" width="450">
			<f:facet name="header">
				<h:outputText value="İş Tecrübeleri" />
			</f:facet>
			<f:facet name="controls">
				<h:panelGroup>
					<h:graphicImage value="/img/close.png" id="hidelink"
						styleClass="hidelink" />
					<rich:componentControl for="editPanel" attachTo="hidelink"
						operation="hide" event="onclick" />
				</h:panelGroup>
			</f:facet>
			<h:form>
				<rich:messages style="color:red;"></rich:messages>
				<h:panelGrid columns="1">
					<a:outputPanel ajaxRendered="true">
						<h:panelGrid columns="2">

							<h:outputText value="Firma Adı" />
							<h:inputText
								value="#{kullaniciHome.currentKullaniciIstecrubeleri.firmaAdi}"
								required="true" />
							<h:outputText value="Başlama Tarihi" />
							<rich:calendar id="basTarihi" required="true"
								value="#{kullaniciHome.currentKullaniciIstecrubeleri.iseBaslamaTarihi}"
								popup="true" enableManualInput="true" datePattern="dd-MM-yyyy">
							</rich:calendar>
							<h:outputText value="Bitiş Tarihi" />
							<rich:calendar id="bitisTarihi"
								value="#{kullaniciHome.currentKullaniciIstecrubeleri.istenAyrilmaTarihi}"
								popup="true" enableManualInput="true" datePattern="dd-MM-yyyy">
							</rich:calendar>

							<h:outputText value="Sektör" />
							<h:selectOneMenu
								value="#{kullaniciHome.currentKullaniciIstecrubeleri.sektor}"
								id="sektorID" styleClass="comboWidth" required="true">
								<s:selectItems var="_sektor" value="#{sektorList.sektorListesi}"
									label="_sektor.sektorAdi" noSelectionLabel="Seçiniz">
								</s:selectItems>
								<s:convertEntity />
							</h:selectOneMenu>
							<h:outputText value="Bölüm" />
							<h:selectOneMenu
								value="#{kullaniciHome.currentKullaniciIstecrubeleri.bolum}"
								id="bolumID" styleClass="comboWidth" required="true">
								<s:selectItems var="_bolum" value="#{bolumList.bolumListesi}"
									label="_bolum.bolumAdi" noSelectionLabel="Seçiniz">
								</s:selectItems>
								<s:convertEntity />
							</h:selectOneMenu>

							<h:outputText value="Görevim" />
							<h:selectOneMenu
								value="#{kullaniciHome.currentKullaniciIstecrubeleri.pozisyonBilgileri}"
								id="pozisyonID" styleClass="comboWidth" required="true">
								<s:selectItems var="_poz"
									value="#{pozisyonBilgileriList.pozisyonBilgileriList}"
									label="_poz.pozisyonAdi" noSelectionLabel="Seçiniz">
								</s:selectItems>
								<s:convertEntity />
							</h:selectOneMenu>
							<h:outputText value="Şehir" />
							<s:decorate id="iLField" template="layout/edit.xhtml">
								<h:outputText value="İl" />
								<h:selectOneMenu
									value="#{kullaniciHome.currentKullaniciIstecrubeleri.iller}"
									id="IlID" styleClass="comboWidth" required="true">
									<s:selectItems var="_il" value="#{illerList.illerList}"
										label="#{_il.ilAdi}" noSelectionLabel="">
									</s:selectItems>
									<s:convertEntity />
								</h:selectOneMenu>

								<h:outputText value="İşten Ayrılma Nedeni" />
								<h:selectOneMenu
									value="#{kullaniciHome.currentKullaniciIstecrubeleri.ayrılmaNedeni}"
									id="nedenKodlariID" styleClass="comboWidth">
									<s:selectItems var="_ayrilma"
										value="#{ayrilmaKodlariList.ayrilmaKodlariListesi}"
										label="#{_ayrilma.adi}" noSelectionLabel="">
									</s:selectItems>
									<s:convertEntity />
								</h:selectOneMenu>
						</h:panelGrid>

					</a:outputPanel>
					<a:commandButton value="Kaydet"
						action="#{kullaniciHome.kullaniciIsTecrubesiKaydet}"
						reRender="firmaID,gorevID,baslamaID,bitisID,AyrilmaID"
						oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editPanel')}.hide();" />
				</h:panelGrid>
			</h:form>
		</rich:modalPanel>
		<rich:modalPanel id="deletePanel" autosized="true" width="200">
			<f:facet name="header">
				<h:outputText value="İş tecrübelerin silinsin mi?"
					style="padding-right:15px;" />
			</f:facet>
			<f:facet name="controls">
				<h:panelGroup>
					<h:graphicImage value="/img/close.png" styleClass="hidelink"
						id="hidelink2" />
					<rich:componentControl for="deletePanel" attachTo="hidelink2"
						operation="hide" event="onclick" />
				</h:panelGroup>
			</f:facet>
			<h:form>
				<table width="100%">
					<tbody>
						<tr>
							<td align="center" width="50%"><a:commandButton value="Sil"
								ajaxSingle="true"
								action="#{kullaniciHome.kullaniciIsTecrubesiSil}"
								oncomplete="#{rich:component('deletePanel')}.hide();"
								reRender="table" /></td>
							<td align="center" width="50%"><a:commandButton
								value="Vazgeç"
								onclick="#{rich:component('deletePanel')}.hide();return false;" />
							</td>
						</tr>
					</tbody>
				</table>
			</h:form>
		</rich:modalPanel>
		<a:status onstart="#{rich:component('wait')}.show()"
			onstop="#{rich:component('wait')}.hide()" />
		<rich:modalPanel id="wait" autosized="true" width="200" height="120"
			moveable="false" resizeable="false">
			<f:facet name="header">
				<h:outputText value="Çalışıyor" />
			</f:facet>
			<h:outputText value="Lütfen Bekleyiniz..." />
		</rich:modalPanel>
		<rich:messages></rich:messages>

	</ui:define>
</ui:composition>
